//
//  Status.swift
//  SwiftStory
//
//  Created by ZxjMacBookPro on 2020/5/13.
//  Copyright © 2020 ZxjMacBookPro. All rights reserved.
//

import UIKit

class Status: NSObject {
    /// 微博创建时间
    @objc var created_at: String?
    
    /// 字符串型的微博ID
    @objc var idstr: String?
    
    /// 微博信息内容
    @objc var text: String?
    
    /// 微博来源
    @objc var source: String?
    
    /// 微博作者的用户信息
    @objc var user: User?
    
    /// 配图数组
    @objc var pic_urls: [[String: Any]]?
    
    @objc var retweeted_status: Status?

//    init(dict: [String: Any]) {
//        super.init()
//        setValuesForKeys(dict)
//    }
//
//    override func setValue(_ value: Any?, forKey key: String) {
//        if key == "user"
//        {
//            user = User(dict: value as! [String : AnyObject])
//            return
//        }
//        super.setValue(value, forKey: key)
//    }
//
//    override func setValue(_ value: Any?, forUndefinedKey key: String) {
//
//    }

    override var description: String {
        let property = ["created_at", "idstr", "text", "source"]
        let dict = dictionaryWithValues(forKeys: property)
        return "\(dict)"
    }
       
}
